<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="div01">
			
		</div>
		<script type="text/javascript">
			

			
			setInterval(function(){
				// 得到当前时间
				var d1 = new Date();
				
				// document.write(d1.getFullYear()+'年');
				// document.write((d1.getMonth()+1)+'月');
				// document.write(d1.getDate()+'日');
				// document.write("&nbsp;")
				
				// document.write(d1.getHours()+":"+d1.getMinutes()+":"+d1.getSeconds());
				
				// var arr = ["一","二","三","四","五","六","日"] ;
				// document.write("星期"+arr[d1.getDay()]);
				
				var str = d1.getFullYear()+'年'
				+ (d1.getMonth()+1)+'月'
				+ d1.getDate()+'日'
				+ d1.getHours()+":"+d1.getMinutes()+":"+d1.getSeconds();
				document.getElementById("div01").innerHTML = str;
				
				
			},1000);
			
			
		</script>
	</body>
</html>
